package io.adrainty.bolee.insurance.models.entity;

import io.adrainty.bolee.framework.commons.basic.BaseEntity;
import io.adrainty.bolee.framework.commons.basic.EnableEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serial;
import java.util.List;

/**
 * <p>ConditionEntity</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description ConditionEntity
 * @since 2025/8/11 11:23:45
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "保险分类")
@EqualsAndHashCode(callSuper = true)
public class CategoryEntity extends BaseEntity {
    
    @Serial
    private static final long serialVersionUID = -6712538364874781247L;

    @Schema(description = "父分类编号")
    private String parentCategoryNo;

    @Schema(description = "分类编号")
    private String categoryNo;

    @Schema(description = "分类名称")
    private String categoryName;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "是否叶子节点（0是 否1）")
    private String leafNode;

    @Schema(description = "是否显示在首页（0是 否1）")
    private String showIndex;

    @Schema(description = "分类类型：0推荐分类  1产品分类 ")
    private String categoryType;

    @Schema(description = "排序")
    private Integer sortNo;

    @Schema(description = "校验规则：0医疗 1重疾 2意外 3养老 4储蓄 5旅游 6宠物 7定寿")
    private String checkRule;

    @Schema(description = "批量操作：主键ID")
    private String[] checkedIds;

    @Schema(description = "分类筛选项")
    private List<CategoryConditionEntity> categoryConditionVOs;

    @Schema(description = "分类系数项")
    private List<CategoryCoefficientEntity> categoryCoefficentVOs;

    @Schema(description = "分类保障项")
    private List<CategorySafeguardEntity> categorySafeguardVOs;

    @Schema(description = "TREE结构：选中分类编号")
    private String[] checkedCategoryNos;

    @Schema(description = "节点层级:最多5层")
    private List<Long> nodeFloors;

    @Schema(description = "数据状态：0正常 1禁用")
    private EnableEnum dataState;
    
}
